package com.cictec.middleware.core.entity.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.cictec.middleware.core.entity.BusLine;
import com.cictec.middleware.core.entity.BusLineMapPoint;
import com.cictec.middleware.core.entity.BusLineStation;
import com.cictec.middleware.core.entity.StandbyZone;

/**
 * 线路信息【线路基础信息、待发区、站点信息、线路地图点信息、线路对于设备线路编号】
 * 
 * @author Administrator
 *
 */
public class BaseBusLineInfo implements Serializable {

	private static final long serialVersionUID = -1423216636397731545L;

	protected BusLine busLine;
	protected List<Integer> busLineIds;
	protected List<StandbyZone> standbyZones = new ArrayList<StandbyZone>();
	protected Map<String, List<BusLineStation>> busLineStationMap = new HashMap<String, List<BusLineStation>>();
	protected Map<String, List<BusLineMapPoint>> busLineMapPointsMap = new HashMap<String, List<BusLineMapPoint>>();

	public List<BusLineMapPoint> getBusLineMapPoints(String lineType) {
		List<BusLineMapPoint> points = busLineMapPointsMap.get(lineType);
		if (points == null) {
			points = new ArrayList<>();
		}
		return points;
	}

	public List<BusLineStation> getBusLineStations(String lineType) {
		List<BusLineStation> busLineStations = busLineStationMap.get(lineType);
		if (busLineStations == null) {
			busLineStations = new ArrayList<>();
		}
		return busLineStations;
	}

	public BusLine getBusLine() {
		return busLine;
	}

	public void setBusLine(BusLine busLine) {
		this.busLine = busLine;
	}

	public List<Integer> getBusLineIds() {
		return busLineIds;
	}

	public void setBusLineIds(List<Integer> busLineIds) {
		this.busLineIds = busLineIds;
	}

	public List<StandbyZone> getStandbyZones() {
		return standbyZones;
	}

	public void setStandbyZones(List<StandbyZone> standbyZones) {
		this.standbyZones = standbyZones;
	}

	public Map<String, List<BusLineStation>> getBusLineStationMap() {
		return busLineStationMap;
	}

	public void setBusLineStationMap(Map<String, List<BusLineStation>> busLineStationMap) {
		this.busLineStationMap = busLineStationMap;
	}

	public Map<String, List<BusLineMapPoint>> getBusLineMapPointsMap() {
		return busLineMapPointsMap;
	}

	public void setBusLineMapPointsMap(Map<String, List<BusLineMapPoint>> busLineMapPointsMap) {
		this.busLineMapPointsMap = busLineMapPointsMap;
	}

}
